Online Tests for Programming and protocol solving in C language

Programming and protocol solving in C language

Download Guruji24.com App on Google Play
  • 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the "OMR" answer sheet supplied with the question paper, following instructions therein.


    Q - 1.1 . what is the following function doing main() {char line[80]; gets(lines); puts(line);}

    Q - 1.2 . What will be the value of count after the following program is executed? Main() {int j=1,k=2; if(j&k) printf("Successful"); else printf("Unsuccessful");}

    Q - 1.3 . An external variable is one

    Q - 1.4 . The declarations typedef float height[100]; height men,women;

    Q - 1.5 . The product of all natural numbers from 1 to n is called

    Q - 1.6 . Recursive functions are executed in a

    Q - 1.7 . A declaration "short int" is used for variables

    Q - 1.8 . Which library function returns number of seconds elapsed beyond a designated base time.

    Q - 1.9 . How many times following loop will be executed? for(a=0;a<14;a++) printf(

    Q - 1.10 . Which of the following functions may not be used to read from a text file "a.txt"?

    2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the "OMR" answer sheet supplied with the question paper, following instructions therein.


    Q - 2.1 . To pass the command line arguments, only argc and argv can be used as the formal argument names.

    Q - 2.2 . Members that compose a union are of different data type and occupy different amount of space.

    Q - 2.3 . A loop may contain another loop in its body.

    Q - 2.4 . Loop is a mechanism to execute a set of statements a number of times.

    Q - 2.5 . A stack is a linear data structure.

    Q - 2.6 . If A[10] Is an array, then A+2 points to the third element of the array.

    Q - 2.7 . Automatic arrays cannot be initialised.

    Q - 2.8 . FORTRAN is machine level language.

    Q - 2.9 . The while loop evalutes a test expression before allowing entry into the loop.

    Q - 2.10 . The function fprintf() is meant for unformatted write to data files.

    3. Match words and phrases in column X with the closest related meaning/ word(s)/phrase(s) in column Y. Enter your selection in the "OMR" answer sheet supplied with the question paper, following instructions therein

    Question Select Answer
    3.1 int *f()
    3.2 Multiple initializations in a for loop
    3.3 Data type to conserve memory
    3.4 + AB
    3.5 A loop that must be executed at least once
    3.6 The Goto statement
    3.7 const char mg[] = "warning"
    3.8 x+=(2<<3)
    3.9 Address of a variable
    3.10 char *day[13]

    4. Each statement below has a blank space to fit one of the word(s) or phrase(s) in the list below. Enter your choice in the "OMR" answer sheet supplied with the question paper, following instructions therein.

    Question Select Answer
    4.1 calloc and malloc() are very ________ functions, used for allocating memory space.
    4.2 _________ linked list can be scanned in either of direction.
    4.3 A _______ statement is used to choose from multiple possibilities which may arise due to different values of a single variable.
    4.4 _______ and _______ are examples of library functions.
    4.5 _________ linked list can be scanned in either of direction.
    4.6 A pointer to a variable declared as double accesses _______ bytes of memory.
    4.7 A pointer to void can hold pointer to _______.
    4.8 The _______ indicates to the compiler that we are dealing with an array.
    4.9 _______ is an unconditional jump statement.
    4.10 A set of instructions which describes the steps to be followed to carry out an activity is called _______.